﻿using System.ComponentModel.DataAnnotations;

namespace Kaiser.ManageClient.Areas.Portal.Models
{
    public class LoginModel
    {
        [Required(ErrorMessage = "请填写{0}")]
        [DataType(DataType.Text)]   
        [StringLength(20, ErrorMessage = "{0}长度最多为{1}位", MinimumLength = 0)]
        [Display(Name = "用户名")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "请填写{0}")]
        [DataType(DataType.Password)]
        [StringLength(20, ErrorMessage = "{0}长度最多为{1}位", MinimumLength = 0)]
        [Display(Name = "密码")]
        public string Password { get; set; }

        [Required(ErrorMessage = "请填写{0}")]
        [Display(Name = "验证码")]
        public string ValidateCode { get; set; }

        [Display(Name = "记住我?")]
        public bool RememberMe { get; set; }
    }
}